Crate hff_std

source ·
Expand description

Implements the basic reader/writer functionality for HFF.

Re-exports§

Modules§

  • Simple helpers for working with Hff data, primarilly metadata.

Structs§

  • Act as a ReadSeek IO object for purposes of having an entire HFF in memory at one time.
  • An intermediate chunk description.
  • A view to a chunk.
  • 8 character code.
  • The Hff structure data. This is an immutable representation of the content of an Hff stream.
  • Description of hff and content.
  • Implements a std reader wrapper around the source.
  • Builder for tables.
  • View of a table.
  • Version of the file format.

Enums§

  • The source of data for given metadata or chunk.
  • Common error type.
  • Identifier type as specified in the hff header. This has no impact on behavior at all, it is only a hint to the end user about how to use/view the ID’s.

Traits§

  • ByteOrder describes types that can serialize integers as bytes.
  • Information about the metadata or chunk data contained within the source.
  • A wrapper trait with a blanket implementation for any type which supports both Read and Seek. The data source of the Hff must support this in order to retrieve metadata or chunk’s from the stream. If the stream is not Seek, either use the provided _full variation which will return the ChunkCache or otherwise store the entire file somewhere which can be accessed with Seek.
  • Helper trait for lazy writing.
  • Writer trait for HffDesc.

Functions§

  • Create a new builder instance.
  • Build a new chunk.
  • Build the structure of the Hff content.
  • Read the structure of a Hff into memory. Provides access only to the structure without any of the metadata or chunk data available.
  • Opens the input and maintains it for random access to the metadata and chunks.
  • Reads an entire Hff into memory.
  • Start building a new table.

Type Aliases§

  • Big Endian.
  • Little Endian.
  • Native Endian.
  • Opposing Endian.
  • The standard result type used in the crate.